#include "AnimChangeOverTime.h"

AnimChangeOverTime::AnimChangeOverTime()
: Animation()
{
	mXAmount =0;
}
AnimChangeOverTime::AnimChangeOverTime(float* val , float pXAmount)
: Animation(NULL){
	mXAmount = pXAmount;
	mVal = val;
}

float AnimChangeOverTime::GetXAmount(){
	return mXAmount;
}
void AnimChangeOverTime::SetXAmount(float pXAmount){
	mXAmount = pXAmount;
}

void AnimChangeOverTime::Update(LPDIRECT3DDEVICE9 d3ddev, double pElapsedTime, double pTotalTime)const{
	*mVal += mXAmount * (pElapsedTime/1000);
}
void AnimChangeOverTime::Release()const{

}